package MyGO.service.impl;

import MyGO.dao.IDoctorDao;
import MyGO.dao.impl.DoctorImpl;
import MyGO.entity.Doctor;
import MyGO.service.IDoctorService;

import java.util.HashMap;
import java.util.List;

public class DoctorServiceImpl implements IDoctorService {
    private IDoctorDao doctorDao = new DoctorImpl();
    @Override
    public List<Doctor> selevtAllDoctor() {
        return doctorDao.selectAllDoctor();
    }

    @Override
    public HashMap<String, Doctor> IDToDoctor() {
        return doctorDao.IDToDoctor();
    }

    @Override
    public void addDoctor(Doctor doctor) {
        doctorDao.addDoctor(doctor);
    }
}
